package com.xiangxiao.rpan.storage.dto;

import com.xiangxiao.rpan.storage.enums.FileTypeEnum;
import lombok.Data;

import java.util.List;

/**
 * @ClassName BatchDeleteDto
 * @Auther admin
 * @Email 573768011@qq.com
 * @Date 2024/9/27 16:40
 */
@Data
public class BatchDeleteDto {

  private String storageKey;  // 存储源key

  private List<DeleteItem> deleteItems; // 要删除的文件/文件夹不能为空

  @Data
  public static class DeleteItem {

    private String name;

    private String path;

    private FileTypeEnum type;

    private String password;

  }
}
